<template>
  <div id="app">
    <notice />
    <popup />
    <leftnav />
    <router-view></router-view>
    <player class="player" />
  </div>
</template>

<script>
import notice from "@/components/notice.vue";// 公告
import player from "@/components/player.vue"; // 音乐播放
import popup from "@/components/popup.vue"; // 天气
import leftnav from "@/components/leftnav.vue"; // 侧边快速栏
export default {
  components: { player, popup, leftnav, notice },
  mounted() {
    if (window.performance.navigation.type == 1) {
      console.log("页面被刷新！");
    } else {
      this.$router.push("/");
    }
  },
};
</script>

<style lang="less" scope="this api replaced by slot-scope in 2.5.0+">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  display: block;
}
#app {
  width: 100%;
}
</style>
